package so.sao.shop.supplier.kingdee.parameter;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 系统参数 每个API都要传入的参数
 * 没注释可选列参数都必传
 * @author gxy on 2017/10/11.
 */
public class SystemParameter {
    /**
     * API名称
     */
    @NotEmpty(message = "API名称不能为空")
    private String method;
    /**
     * 商城分配给应用的AppKey
     */
    @NotEmpty(message = "AppKey不能为空")
    private String app_key;
    /**
     * 商城分配给用户的SessionKey
     */
    @NotEmpty(message = "SessionKey不能为空")
    private String session;
    /**
     * API协议版本 可选值:1.0
     */
    @NotEmpty(message = "API协议版本不能为空")
    private String v;
    /**
     * 时间戳,格式为yyyy-MM-dd HH:mm:ss
     */
    @NotEmpty(message = "日期不能为空")
    private String timestamp;
    /**
     * API输入参数签名结果
     */
    @NotEmpty(message = "签名不能为空")
    private String sign;
    /**
     * 参数的加密方法选择
     */
    private String sign_method; //可选
    /**
     * 指定参数格式 默认是json
     */
    private String format;  //可选

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getApp_key() {
        return app_key;
    }

    public void setApp_key(String app_key) {
        this.app_key = app_key;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getSign_method() {
        return sign_method;
    }

    public void setSign_method(String sign_method) {
        this.sign_method = sign_method;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }
}
